<?php

namespace Database\Factories;

use App\Models\MemberRight;
use Illuminate\Database\Eloquent\Factories\Factory;

class MemberRightFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = MemberRight::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'right_type' => $this->faker->text(15),
            'right_title' => $this->faker->text(15),
            'show_title' => $this->faker->text(15),
            'image' => $this->faker->numberBetween(
                [
                    'a,png',
                    'b.jpg',
                    'c.png'
                ]
            ),
            'explain' => $this->faker->text(10),
            'number' => $this->faker->numberBetween(1000, 9999),
            'sort' => $this->faker->numberBetween(1, 999),
            'status' => $this->faker->randomElement([0, 1]),
        ];
    }
}
